package com.ny.service;

import com.ny.entity.User;

import java.util.List;

public interface UserService {
    public List<User> findAll();
    public User findUser(String username,String password);
    // 用户注册
    public boolean register(User user);

    // 发送验证码
    public void sendEmail(String email);

    // 判断验证码是否正确
    public boolean findEmail(String email, String code);

    // 查询邮箱是否存在
    public int findUserByEmail(String email);

    // 通过邮箱修改密码
    public int updateUser(String email, String password);

}